# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=bigreqsproto
pkgver=1.1.2
pkgrel=2
pkgdesc="X11 Big Requests extension wire protocol"
arch=(any)
url="http://xorg.freedesktop.org/"
license=('custom')
makedepends=('xorg-util-macros' 'xmlto' 'docbook-xml')
source=(https://xorg.freedesktop.org/releases/individual/proto/${pkgname}-${pkgver}.tar.bz2)
sha1sums=('ef1765eeb5e9e38d080225fe6a64ed7cd2984b46')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install

  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
}

